const user = {
    name: 'sen',
    //es6简写
    sayHello() {
        console.log(this.name);
    },
    //之前写法
    sing: function () {
        console.log("唱爱爱爱");
    }
}

user.sayHello()